<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>管理后台</title>
    <link rel="stylesheet" href="__CSS__/ST_admin.css"/>
    <link rel="stylesheet" href="__CSS__/my_admin.css"/>
    <script src="__JAVASCRIPT__/jquery.min.js"></script>
    <script type="text/javascript">
        var ST = {
            // 资源路径
            PATH: {
                JS: "__JAVASCRIPT__/", //JS路径
                JSTMP: "__JSTEMP__/", //JS模板路径
                IMAGE: "__IMG__/",    //图片路径
                CSS: "__CSS__/",      //CSS路径
                ROOT: "/",            //网站根目录
                VCODE: ""             //获取验证码路径
            },
            // 数据缓存
            CACHE: {},
            // 使用的JS模板
            JSTMP: {},
            // 服务端使用的URL
            ACTION: {},
            // 服务端输出的数据
            PHPDATA: {},
            // 初始化后执行的方法（ST.todoList()前执行）
            TODOLIST: [],
            // 页面空方法（用于HTML中执行ST方法，调用：ST.todo('方法名',参数1,...,参数N)）
            todo: function () {
            }
        };
    </script>
</head>
<body scroll="no" style="overflow: hidden;">
<div class="header" style="height: 30px;">
    <ul class="nav nav-inline pull-right">
        <li><strong>{%$admin_name%}，你好！</strong></li>
        <li><a onclick="ST.todo('navClick', this); return false;" href="{%:U('/admin/admin/publish')%}">上线代码</a></li>
        <li><a onclick="ST.todo('navClick', this); return false;" href="{%:U('/admin/admin/changepwd')%}">修改密码</a></li>
        <li class="divider-vertical"></li>
        <li><a href="{%:U('/admin/admin/logout')%}">退出</a></li>
        <li>&nbsp;</li>
    </ul>
    <ul class="nav nav-tabs nav-blue">
        {%volist name="navList" id="vo"%}
        <li {%eq name="class_id" value="$vo['class_id']"%}class="active"{%/eq%}><a href="{%:U('/admin/index')%}?class_id={%$vo['class_id']%}">{%$vo['name']%}</a></li>
        {%/volist%}
    </ul>
</div>
<!--header-->
<div class="gutter"></div>
<!--gutter-->
<div class="container">
    {%include file="Public:side_menu"/%}
    <div style="margin-left: 180px; min-width: 541px;">
        <iframe name="right" id="rightMain" src="about:blank;"
                frameborder="false" scrolling="auto"
                style="border: none; margin-bottom: 30px" width="100%"
                height="auto" allowtransparency="true"></iframe>
    </div>
</div>
<div id="ST_temp" style="display: none">
    {%include file="Public:js_template" /%}
</div>
<script src="__JAVASCRIPT__/ST.js" charset="utf-8"></script>
<script src="__JAVASCRIPT__/ST.LRes.js"></script>
<script src="__JAVASCRIPT__/ST.Verify.js" charset="utf-8"></script>
<script src="__JAVASCRIPT__/common.js" charset="utf-8"></script>
<script src="__JAVASCRIPT__/my_admin.js" charset="utf-8"></script>
</body>
</html>
<script>
    $.extend(ST, {
        todoList: function () {
            //初始化后的js脚本
            ST.tipMsg('欢迎使用后台管理系统!');
        }
    });
    ST.init();
    $(function (){
        $('#rightMain').css('height', $(window).height() - 42);
    	$(window).resize(function(){
            $('#rightMain').height($(window).height() - 42);
        });
    })
</script>